import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:laos_mall/common/style/app_style.dart';
import 'package:laos_mall/common/style/extension_util.dart';
import 'package:laos_mall/common/widght/appbar_widget.dart';
import 'package:laos_mall/pages/main/widgets/product_item.dart';
import 'package:laos_mall/pages/point_mall/point_order/view.dart';

import '../../common/widght/item_widget.dart';
import '../main/config.dart';
import 'logic.dart';

class PointMallPage extends StatelessWidget {
  PointMallPage({Key? key}) : super(key: key);

  final logic = Get.put(PointMallLogic());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBarWidget(text: "points_shop".tr,actions: [
        Image.asset("ic_setting".toImgPath(),width: 20.w,height: 20.w,).addPadding(EdgeInsets.only(right: 20.w)).addGestureTap(() {
          Get.to(()=> PointOrderPage());
        })
      ]),
      body: Column(children: [
        Row(children: [
          Text("available_points".tr,style: AppStyle.textStyle),
          Spacer(),
          ItemWidget(prefixItem: Image.asset('ic_sanbin'.toImgPath(),width: 18.w,height: 18.w,),suffixItem: "999",space: 4,isReverse: true,),
        ],).addContainer(height: 44.h,margin: EdgeInsets.symmetric(horizontal: 20.w),color: Colors.transparent).addDiver(),
        SizedBox(height: 20.h,),
        PointListView().addExpand(),
      ],),
    );
  }

}
